/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.mortbay.jetty.pico.pages.administrator;

import java.util.List;
import org.apache.tapestry5.annotations.InjectPage;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;
//import org.mortbay.jetty.pico.dao.employee.EmployeeDAO;
import org.mortbay.jetty.pico.entities.Employee;

/**
 *
 * @author Dang
 */
public class EmployeeAction {
    /*
     * Execute from action
     * 
     */
    
    @Inject 
    //private EmployeeDAO employeeDAO;
    @Property
    private Employee employee;
    @InjectPage
    private InsertEmployee insertEmployee;
//    @InjectPage 
//    private EmployeeAction employeeAction;
    public List<Employee> getList(){
        //return employeeDAO.getList();
        return null;
    }
    public boolean isEmptyList(){
        //return employeeDAO.getList().isEmpty();
        return true;
    }
    public void onActionFromDelete(String idEmp){
//        System.out.println("id: " + idEmp);
//        employee = (Employee) employeeDAO.find(idEmp);
//        if(employee != null){
//            employeeDAO.remove(employee);
//            //categoryDAO.removeByID(idCate);
//        }
    }
    public String getName(){
        return "hello chung";
    }

//    public EmployeeDAO getCategoryDAO() {
//        //return employeeDAO;
//        return null;
//    }

//    public Employee getCategory() {
//        return employee;
//    }
//
//    public void setCategory(Employee category) {
//        this.employee = category;
//    }
}
